<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>用户登录</title>
</head>
<body>
	<div align="center">
	<h2>登录页面</h2>
		<form action="/userLogin.do" method="POST">
			用户名:<input type="text" name="username">
				<%
					if("-1".equals(request.getAttribute("errorCode"))){
						out.println("用户名不存在");
					}
				%>
			<br>
			<br>
			密  码  :<input type="password" name="password">
				<%
					if("-2".equals(request.getAttribute("errorCode"))){
						out.println("密码错误");
					}
				%>
			 <br>
			 <br>
			 验证码:<input type="text" name="checkcode" id="checkcode" required>
                 <img src="" id="img_check">
             <br>
             <br>
				<input type="submit" value="登录">
		</form>
	</div>
</body>
</html>